#include<iostream>
using namespace std;
int main()
{
	int n;
	cin >> n;
	double* array = new double[n];
	for (int i = 0; i < n; i++)
	{
		cin >> array[i];
	}
	double sum = 0,max,min;
	max = array[0];
	min = array[0];
	for (int i = 0; i < n; i++)
	{
		sum += array[i];
		if (max < array[i])
		{
			max = array[i];
		}
		if (min > array[i])
		{
			min = array[i];
		}
	}
    sum/=n;
	printf("average = ""%.2f\n", sum);
	printf("max = ""%.2f\n", max);
	printf("min = ""%.2f\n", min);
	delete[] array;
	return 0;
}